package it.pir.es02ChatTCP;

import java.io.*;

public class Message implements Serializable{
	
	private static final long serialVersionUID = -3441197510130976912L;
	public static final int MESSAGE = 0;
	public static final int AUTHENTICATION = 1;
	public static final String ENCODE = "UTF-8";
	private String nickname;
	private String message;
	private int type;
	
	public Message(String nickname, String message, int type) {
		this.nickname = nickname;
		this.message = message;
		this.type = type;
	}
	
	public String getNickname() {
		return nickname;
	}

	public String getMessage() {
		return message;
	}
	
	public int getType() {
		return type;
	}
}
